package task

import (
	"../middleware"
	"../response"
)

type Task struct {
	*middleware.Context
	Name   string
	Input  Input
	Filter FilterList
	Output OutputList
	//Task string
}

type TaskStatus struct {
	Name      string  `json:"name"`
	Id        string  `json:"id"`
	CreatedAt string  `json:"createdAt"`
	StartedAt string  `json:"startedAt"`
	Status    string  `json:"status"`
}

type TaskCreateResponse struct {
	response.Response
	TaskStatus TaskStatus `json:"taskStatus"`
}

type allTasksResponse struct {
	response.Response
	Tasks []TaskStatus `json:"tasks"`
}

type getTaskResponse	struct {
	response.Response
	TaskStatus	TaskStatus `json:"taskStatus"`
}